/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package net.worlds.ui.edge;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;


public class ESeparator extends EComponent{
    private Color color;
    public ESeparator(int x, int y, int h)
    {
        setX(x);
        setY(y);
        setWidth(1);
        setHeight(h);
    }
    public void setColor(Color c)
    {
        color = c;
    }
    @Override
    public void render(Graphics2D g)
    {
        super.render(g);
        g.setColor(color);
        g.drawLine(getX(), getY(), getX(), getY() + height);
    }
}
